package edu.gu.hajo.gcl.cmd.impl;

import java.util.Scanner;

import edu.gu.hajo.gcl.interp.IInterpreter;

public final class GetsCmd extends AbstractCmd {
	
	
	public GetsCmd(IInterpreter interp) {
		super(interp);
	}

	@Override
	public /*String*/void  execute(/*IInterpreter interp*/) {
		
		// #args == 1

		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		interp.setVar( args.get(0), s);
		// TODO
		interp.setResult("");
		//return s;
	}
}
